using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.DirectoryServices;
using Dimok;
using Dimok.Data;
using Dimok.Exceptions;
using Dimok.Aspx.Manager.Lib;
using Data;

namespace Dimok.Aspx.Manager.Verification{
	public partial class FaxToBroker : Page_AL{
		protected void Page_Load(object sender, System.EventArgs e){
			try{
				Response.Cache.SetCacheability(HttpCacheability.NoCache);
				UOX uox = new UOX();
				DataSet dsTree = XmlEx.GetLevels(uox.db,"SELECT Lable SPAN,* FROM verFaxToDealer("+uox.applID+","+uox.menuID+") WHERE 1=1 ","ID","ParentID","","DIV");
				SQL.SetColumnsMapping(dsTree,MappingType.Element,new string[]{"SPAN"});
				Trace.Write("DataSet",dsTree.GetXml());
				ltrTree.Text = XmlEx.CleanLevelsXML(dsTree.GetXml(),"DIV");
				ltrTree.Text = ltrTree.Text.Replace("&lt;","<").Replace("&gt;",">");
				string sql = "SELECT * ,'"+uox.DisplayNameAndExt+"' as Sender FROM v_verMissingItemsFax WHERE "+uox.ApplicantFilter();
				try{
					ltrDso.Text = SQL.XmlInnerText(uox.db,sql);
				}catch(Exception exc){
					throw new Exception("SQL:"+sql,exc);
				}
				AppendLocalBase();
			}catch(Exception exc){
				throw new ClientException(exc);
			}
		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN: This call is required by the ASP.NET Web Form Designer.
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{    
		}
		#endregion
	}
}
